I came across LBFactory.php:357 while testing my
master/replica db setup. It was not configured correctly
and I got "Argument 1 passed to DBExpectedError::__construct()
must implement interface IDatabase, string given" instead
of the actual error.
Change-Id: I949e1803f84459f8bb83e957a88d1e927cad16f7
*/
class DBAccessError extends DBUnexpectedError {
public function __construct() {
- parent::__construct( "Database access has been disabled." );
+ parent::__construct( null, "Database access has been disabled." );
}
}
if ( $failed ) {
throw new DBReplicationWaitError(
+ null,
"Could not wait for replica DBs to catch up to " .
implode( ', ', $failed )
);